package design.simdi.code.final_paper.core.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * @author Marius Dumitriu - (Jun 26, 2010 - 4:22:18 PM)
 * 
 */
@Entity
@Table(name = "absolventi")
@AttributeOverrides( { @AttributeOverride(name = "id", column = @Column(name = "Absolvent_Id")) })
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Absolvent extends ApplicationEntity {

	private static final long serialVersionUID = 1L;
	private Integer anAbsolvire;

	public void setAnAbsolvire(Integer anAbsolvire) {
		this.anAbsolvire = anAbsolvire;
	}

	@Column(nullable = false, name = "An")
	public Integer getAnAbsolvire() {
		return anAbsolvire;
	}

}
